//extends on OneWire.h.

#ifndef OWTemp_h
#define OWTemp_h

#include <OneWire.h>
//#include "OneWire.h"

#define FALSE 0
#define TRUE  1

class OWTemp: public OneWire {
  private:
    int HighByte, LowByte;
    char i;
    char data[12];

  public:
    OWTemp(uint8_t pin);
    uint8_t getTemp();
    int SignBit, Whole, Fract, TReading, Tc_100, FWhole;
    uint8_t addr[8];
  
    // inherited methods:
    // uint8_t reset(void);
    // void select( uint8_t rom[8]);
    // void skip(void);
    // void write(uint8_t v, uint8_t power = 0);
    // uint8_t read(void);
    // void write_bit(uint8_t v);
    // uint8_t read_bit(void);
    // void depower(void);
};

#endif
